package com.huaxingbankas.modules.model.backup;

import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;

/**
 * AbstractThirdMenu entity provides the base persistence definition of the
 * ThirdMenu entity. @author MyEclipse Persistence Tools
 */
@MappedSuperclass
public abstract class AbstractThirdMenu implements java.io.Serializable {

	// Fields

	private Integer id;
	private SecondMenu secondMenu;
	private String name;
	private String thirdMenuPriority;
	private String thirdMenuComment;
	private String defaultValue;

	// Constructors

	/** default constructor */
	public AbstractThirdMenu() {
	}

	/** full constructor */
	public AbstractThirdMenu(SecondMenu secondMenu, String name,
			String thirdMenuPriority, String thirdMenuComment,
			String defaultValue) {
		this.secondMenu = secondMenu;
		this.name = name;
		this.thirdMenuPriority = thirdMenuPriority;
		this.thirdMenuComment = thirdMenuComment;
		this.defaultValue = defaultValue;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "second_menu_id")
	public SecondMenu getSecondMenu() {
		return this.secondMenu;
	}

	public void setSecondMenu(SecondMenu secondMenu) {
		this.secondMenu = secondMenu;
	}

	@Column(name = "name", length = 32)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "third_menu_priority", length = 32)
	public String getThirdMenuPriority() {
		return this.thirdMenuPriority;
	}

	public void setThirdMenuPriority(String thirdMenuPriority) {
		this.thirdMenuPriority = thirdMenuPriority;
	}

	@Column(name = "third_menu_comment", length = 32)
	public String getThirdMenuComment() {
		return this.thirdMenuComment;
	}

	public void setThirdMenuComment(String thirdMenuComment) {
		this.thirdMenuComment = thirdMenuComment;
	}

	@Column(name = "default_value", length = 32)
	public String getDefaultValue() {
		return this.defaultValue;
	}

	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}

}